
[DebuggerNonUserCode()] public class ComparableTypeAssertions<T,TAssertions> : FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions> where TAssertions: ComparableTypeAssertions<T,TAssertions>
System.Object
FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>
FluentAssertions.Numeric.ComparableTypeAssertions<T,TAssertions>
FluentAssertions.Numeric.ComparableTypeAssertions<T>
Name | Description | |
---|---|---|
![]() | ComparableTypeAssertions<T,TAssertions> Constructor |
Name | Description | |
---|---|---|
![]() | CurrentAssertionChain | Provides access to the FluentAssertions.Execution.AssertionChain that this assertion class was initialized with. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions>) |
![]() | Subject | Gets the object whose value is being asserted. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions>) |
Name | Description | |
---|---|---|
![]() | Identifier | Overridden. Returns the type of the subject the assertion applies on. It should be a user-friendly name as it is included in the failure message. Returns the type of the subject the assertion applies on. |
Name | Description | |
---|---|---|
![]() | Be | Asserts that an object equals another object using its System.Object.Equals(System.Object) implementation. Verification whether CompareTo returns 0 is not done here, you should use BeRankedEquallyTo to verify this. |
![]() | BeAssignableTo | Overloaded. Asserts that the object is assignable to a variable of type T. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions>) |
![]() | BeEquivalentTo | Overloaded. Asserts that an object is equivalent to another object. |
![]() | BeGreaterThan | Asserts that the subject is greater than another object according to its implementation of IComparable. |
![]() | BeGreaterThanOrEqualTo | Asserts that the subject is greater than or equal to another object according to its implementation of IComparable. |
![]() | BeInRange | Asserts that a value is within a range. |
![]() | BeLessThan | Asserts that the subject is less than another object according to its implementation of IComparable. |
![]() | BeLessThanOrEqualTo | Asserts that the subject is less than or equal to another object according to its implementation of IComparable. |
![]() | BeNull | Asserts that the current object has not been initialized yet. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions>) |
![]() | BeOfType | Overloaded. Asserts that the object is of the specified type T. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions>) |
![]() | BeOneOf | Overloaded. Asserts that a value is one of the specified validValues. |
![]() | BeRankedEquallyTo | Asserts that the subject is ranked equal to another object. I.e. the result of CompareTo returns 0. To verify whether the objects are equal you must use Be. |
![]() | BeSameAs | Asserts that an object reference refers to the exact same object as another object reference. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions>) |
![]() | Equals | (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions>) |
![]() | Match | Overloaded. Asserts that the predicate is satisfied. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions>) |
![]() | NotBe | Asserts that an object does not equal another object using its System.Object.Equals(System.Object) method. Verification whether CompareTo returns non-zero is not done here, you should use NotBeRankedEquallyTo to verify this. |
![]() | NotBeAssignableTo | Overloaded. Asserts that the object is not assignable to a variable of type T. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions>) |
![]() | NotBeInRange | Asserts that a value is not within a range. |
![]() | NotBeNull | Asserts that the current object has been initialized. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions>) |
![]() | NotBeOfType | Overloaded. Asserts that the object is not of the specified type T. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions>) |
![]() | NotBeRankedEquallyTo | Asserts that the subject is not ranked equal to another object. I.e. the result of CompareToreturns non-zero. To verify whether the objects are not equal according to System.Object.Equals(System.Object) you must use NotBe. |
![]() | NotBeSameAs | Asserts that an object reference refers to a different object than another object reference refers to. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions>) |
![]() | Satisfy<T> | Allows combining one or more assertions using the other assertion methods that this library offers on an instance of T. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<IComparable<T>,TAssertions>) |
Name | Description | |
---|---|---|
![]() | As<TTo> | Safely casts the specified object to the type specified through TTo. |
![]() | Awaiting | Overloaded. Invokes the specified action on a subject so that you can chain it with any of the assertions from FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions |
![]() | Enumerating | Overloaded. Forces enumerating a collection. Should be used to assert that a method that uses the yield keyword throws a particular exception. |
![]() | ExecutionTimeOf<T> | Provides methods for asserting the execution time of a method or property. |
![]() | Invoking | Overloaded. Invokes the specified action on a subject so that you can chain it with any of the assertions from FluentAssertions.Specialized.ActionAssertions |
![]() | Monitor | Overloaded. Starts monitoring eventSource for its events. |
![]() | Should | Overloaded. Returns an FluentAssertions.Specialized.ExecutionTimeAssertions object that can be used to assert the current FluentAssertions.Specialized.ExecutionTime. |
![]() | Should | Overloaded. Returns an FluentAssertions.Primitives.EnumAssertions<TEnum,TAssertions> object that can be used to assert the current TEnum. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2